package com.yangxd.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yangxd.system.entity.UserRole;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 用户角色关联表 Mapper 接口
 * </p>
 *
 * @author yangxd
 * @since 2021-04-20
 */
public interface UserRoleMapper extends BaseMapper<UserRole> {
    @Select("select * from tb_user_role where user_id = #{userId}")
    List<UserRole> listByUserId(String userId);

}
